package com.ke.forum.mbg.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ke.forum.mbg.entity.Section;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class SortDto {
    private Integer id;

    /**
     * 分类名字
     */
    private String name;

    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    List<Section> sections;
}
